cmake_minimum_required(VERSION 3.10)

project(orbDemo)

# set(OrbbecSDK_DIR "/home/jpx/software/OrbbecSDK-1.10.12")
set(OrbbecSDK_DIR "/usr/local/lib")
find_package(OrbbecSDK REQUIRED)
message(STATUS "OrbbecSDK includes: ${OrbbecSDK_INCLUDE_DIRS}")
message(STATUS "OrbbecSDK libraries: ${OrbbecSDK_LIBRARIES}")

find_package(OpenCV REQUIRED)
message(STATUS "OpenCV includes: ${OpenCV_INCLUDE_DIRS}")
message(STATUS "OpenCV libraries: ${OpenCV_LIBRARIES}")
include_directories(
    ${OpenCV_INCLUDE_DIRS}
)

include_directories(
    ${OrbbecSDK_INCLUDE_DIRS}
    /usr/local/include
)

add_executable(test_orb336LCamera test_orb336LCamera.cpp orb336LCamera.cpp orb336LCamera.h)
target_link_libraries(test_orb336LCamera ${OrbbecSDK_LIBS} ${OpenCV_LIBS})

